import {defineStore} from "pinia";
import {ref} from "vue";

export const useContainerLogStore = defineStore('containerLog', () => {
    let appLogFileList = ref([]);
    let containerId = ref("");
    let searchLoading = ref(false);
    let appLogDialogDialogFlag = ref(false);

    function resetAppLogFileList(info) {
        appLogFileList.value = info
    }

    function resetContainerId(info) {
        containerId.value = info
    }

    function resetSearchLoading(flag) {
        searchLoading.value = flag
    }

    function resetAppLogDialogDialogFlag(flag) {
        appLogDialogDialogFlag.value = flag
    }

    return { appLogFileList, resetAppLogFileList, containerId, resetContainerId, searchLoading, resetSearchLoading, appLogDialogDialogFlag, resetAppLogDialogDialogFlag }
})